﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThapCam.Provider;
using ThapCam.System;

public partial class WhatView : PageBase
{
    protected DataTable listHot;
    protected DataTable listNewest;

    protected override void createModuleLogic(ThapCamApplication application)
    {
        pageLogic = new WhatViewLogic(application);
        dynamic obj = ThapCamLogic.properties["HCDefault"] as ExpandoObject;
        this.group = obj.group;
        this.pageTitle = obj.title;
        this.pageDescription = obj.description;
        this.pageKeyword = obj.keyword;
    } 

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            listHot = (pageLogic as WhatViewLogic).getListHot(10);
            listNewest = (pageLogic as WhatViewLogic).getLimitListNewest(100, 0);
        }
    }
}